<!DOCTYPE html>
<html>

<head>
    <meta name="layout" content="main" />
    <g:set var="entityName" value="${message(code: 'prouctCondition.label', default: 'Role')}" />
    <title>修改产品-条件</title>
</head>

<body class="fixed-navbar fixed-sidebar">
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>贷款管理系统</li>
                    <li>
                        <g:link controller="prouctCondition" action="index">产品-条件</g:link>
                    </li>
                    <li class="active">
                        修改产品-条件
                    </li>
                </ol>
            </div>
            <h2 class="font-light m-b-xs">
                修改产品-条件
            </h2>
        </div>
    </div>
</div>
<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                修改产品-条件编辑
            </div>
            <div class="panel-body">
                <g:form resource="${this.prouctCondition}" method="PUT" class="form-horizontal">
                    <g:if test="${flash.message}">
                        <div class="message" role="status">${flash.message}</div>
                    </g:if>
                    <g:hasErrors bean="${this.prouctCondition}">
                        <ul class="errors" role="alert">
                            <g:eachError bean="${this.prouctCondition}" var="error">
                                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>>
                                    <g:message error="${error}" />
                                </li>
                            </g:eachError>
                        </ul>
                    </g:hasErrors>
                    <div class="form-group">
                        <label class="col-md-4 control-label">执行次序</label>

                        <div class="col-md-4">
                            <g:textField name="executeSequence"
                                         value="${this.prouctCondition?.executeSequence}"
                                         class="form-control"/>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <label class="col-md-4 control-label">产品</label>

                        <div class="col-md-4">
                            <g:select class="form-control" name="prouct.id" id="prouct"
                                      value="${this.prouctCondition?.prouct?.id}"
                                      from="${com.next.Product.list()}" optionKey="id" optionValue="name"
                                      noSelection="['': '--请选择--']"></g:select>

                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <label class="col-md-4 control-label">组件</label>

                        <div class="col-md-4">
                            <g:select class="form-control" name="component.id" id="component"
                                      value="${this.prouctCondition?.component?.id}"
                                      from="${com.next.Component.list()}" optionKey="id" optionValue="name"
                                      noSelection="['': '--请选择--']"></g:select>

                        </div>
                    </div>

                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <label class="col-md-4 control-label">条件描述</label>

                        <div class="col-md-4">
                            <g:textArea name="message" id="code2"
                                        value="${this.prouctCondition?.message}" class="form-control textarea"
                                        rows="3" cols="15"/>

                        </div>
                    </div>

                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <div class="form-group">
                            <div class="col-md-3 col-md-offset-4">
                                <g:submitButton class="btn btn-info" name="update" value="保存" />
                            </div>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
</body>

</html>
